package site.yunnong.atvris.service.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * @author zjh
 * @date 2021/7/15 0:31
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class NewsVO {
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long unid;
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long uuid;

    private String userAvatar;

    private String userNickname;

    @ApiModelProperty("状态。在查看自己的创作时需要显示具体状态")
    private Integer status;
    
    private String content;

    private Integer likedCount;

    private Integer commentCount;

    private Integer shareCount;
    @JsonFormat(shape = JsonFormat.Shape.STRING, timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;
    
    @ApiModelProperty("是否已点赞该动态")
    private Boolean hasSupport;

}
